<include file="public:no_bs_header" />
<!--文章列表-->
<div class="pad_lr_10">
    <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
        <tr>
            <td>
            <div class="explain_col">
                <input type="hidden" name="m" value="superadmin" />
                <input type="hidden" name="c" value="article" />
                <input type="hidden" name="a" value="index" />
                <input type="hidden" name="menuid" value="{$menuid}" />
                {:L('publish_time')}：
                <input type="text" name="time_start" readonly id="time_start" class="laydate-icon" size="12" value="{$_GET['time_start']}">
                -
                <input type="text" name="time_end" readonly id="time_end" class="laydate-icon" size="12" value="{$_GET['time_end']}">
                &nbsp;&nbsp;{:L('article_cateid')}：
                <select class="J_cate_select mr10" data-pid="0" data-uri="{:U('superadmin/article_cate/ajax_getchilds')}" data-selected="{$article.cate_path}">

                </select>
                <input type="hidden" name="cate_id" id="cate_id" value="{$cate_id}" />
                &nbsp;&nbsp;{:L('status')}:
                <select name="status">
                <option value="null">-{:L('all')}-</option>
                <option value="1" <if condition="$_GET['status'] eq '1'">selected="selected"</if>>已审核</option>
                <option value="0" <if condition="$_GET['status'] eq '0'">selected="selected"</if>>未审核</option>
                </select>
                &nbsp;&nbsp;{:L('keyword')} :
                <input name="keyword" type="text" class="input-text" size="25" value="{$_GET['keyword']}" />
                <input type="submit" name="search" class="btn" value="{:L('search')}" />
            </div>
            </td>
        </tr>
        </tbody>
    </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('article/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th width="30">序号</th>
                <th><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="title">{:L('article_title')}</span></th>
                <th><span data-tdtype="order_by" data-field="cate_id">{:L('article_cateid')}</span></th>
                <th width=150>{:L('author')}</th>
				<th width=150><span data-tdtype="order_by" data-field="addtime">{:L('publish_time')}</span></th>
                <th width=60><span data-tdtype="order_by" data-field="ordid">{:L('sort_order')}</span></th>
                <th width="40"><span data-tdtype="order_by" data-field="status">{:L('status')}</span></th>
                <th width="80">{:L('operations_manage')}</th>
            </tr>
        </thead>
        <tbody>
            <volist name="list" id="val" >
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$key+1}</td>
                <td align="center">{$val.id}</td>
                <td align="left">{$val.title}<notempty name="val['thumb']"><span class="attachment_icon" file-type="image" file-rel="__ROOT__/upload{$val.thumb}"><img src="__STATIC__/admin/css/bgimg/image_s.gif" /></span></notempty></td>
                <td align="center"><b>{$cate_list[$val['cate_id']]['cate_name']}</b></td>
				<td align="center"><b>{$val['source']}</b></td>
                <td align="center">{$val.addtime|date='Y-m-d H:i:s',###}</td>
                <td align="center"><span data-tdtype="edit" data-field="ordid" data-id="{$val.id}" class="tdedit">{$val.ordid}</span></td>
                <td align="center"><if condition="$val.status eq 1"><font color="green">已审核</font></if> <if condition="$val.status eq 0"><font color="red">未审核</font></if></td>
                <td align="center"><a href="{:u('article/edit', array('id'=>$val['id'], 'menuid'=>$menuid))}">{:L('edit')}</a> | <a href="javascript:void(0);" class="layer_confirm" data-acttype="ajax" data-url="{:u('article/delete', array('id'=>$val['id']))}" data-msg="{:sprintf(L('confirm_delete_one'),$val['title'])}">{:L('delete')}</a></td>
            </tr>
            </volist>
        </tbody>
    </table>

        <div class="btn_wrap_fixed">
            <label class="select_all mr10"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
            <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('suerperadmin/suerperadminadmin/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
            <div id="pages" style="margin-top: 5px;">
                {$page}
            </div>
        </div>
        <input type="hidden" id="json_cate_list" value='{$json_cate_list}'>
    </div>
</div>
<include file="public:footer" />
<script src="__STATIC__/admin/js/treetable.js"></script>
<script src="__STATIC__/laydate/laydate.js" type="text/javascript"></script>
<script>
    //$('.J_cate_select').cate_select({top_option:lang.all});
    laydate.skin('molv');
    laydate({
        elem: '#time_start',
    });
    laydate({
        elem: '#time_end',
    });
    $(function() {
        var cate_path = "{$cate_path}"
        var cate_source = $('#json_cate_list').val();
        cate_select_default(cate_source, cate_path)
    });

</script>
</body>
</html>
